package com.jsz.peini.mapper.order;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jsz.peini.bean.order.OrderInfo;
import com.jsz.peini.bean.order.OrderInfoExample;
import com.jsz.peini.bean.task.TaskInfo;

public interface OrderInfoMapper {
	long countByExample(OrderInfoExample example);

    int deleteByPrimaryKey(Long id);

    int insert(OrderInfo record);

    int insertSelective(OrderInfo record);

    List<OrderInfo> selectByExample(OrderInfoExample example);

    OrderInfo selectByPrimaryKey(Long id);
    
    OrderInfo selectUserOrderByUserId(@Param("userId") String userId,@Param("taskId") Integer taskId);
    
    
    int updateOrderInfoCancelByTaskId(OrderInfo orderInfo);
    
    List<OrderInfo> selectOrderInfoByTaskId(OrderInfo orderInfo);

    int updateByPrimaryKeySelective(OrderInfo record);

    int updateByPrimaryKey(OrderInfo record);

	List<LinkedHashMap<String, Object>> getOrderInfoList(OrderInfo orderInfo);
	
	//根据订单编号查询订单信息
	HashMap<String,Object> selectByOrderId(Long orderId);
	
	//查询订单支付
	List<HashMap<String,Object>> selectPayByOrderId(Long orderId);
	
	//查询订单账单交易明细
	List<HashMap<String,Object>> selectPayDetailByOrderId(int sellerId);
	
	//更新订单状�?
	int updateOrderStatusByOrderId(OrderInfo orderInfo);
    
	/**
	 * 获取店铺账单信息
	 * @author Han Guohong
	 * @param orderInfo
	 * @return
	 */
	List<LinkedHashMap<String, Object>> getPayListBySeller(HashMap<String, Object> paramMap);
}